import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { RequirementDepartManagerRoutingModule } from './requirement-depart-manager-routing.module';
import { RequirementDepartManagerComponent } from './requirement-depart-manager.component';
import { RequirementDepartManagerAuditComponent } from './requirement-depart-manager-audit.component';
import { RequirementDepartManagerAudit2Component } from './requirement-depart-manager-audit2.component';
import { RequirementDepartManagerItemEditComponent } from './requirement-depart-manager-item_edit.component';
import { PaginatorModule, AutoCompleteModule } from 'primeng/primeng';
import { TableModule } from 'primeng/table';
import { BsDropdownModule, TabsModule, ModalModule, BsDatepickerModule, BsLocaleService } from 'ngx-bootstrap';
import { UtilsModule } from '@shared/utils/utils.module';
import { NgxBootstrapDatePickerConfigService } from 'assets/ngx-bootstrap/ngx-bootstrap-datepicker-config.service';

@NgModule({
  declarations: [
    RequirementDepartManagerComponent,
    RequirementDepartManagerAuditComponent,
    RequirementDepartManagerAudit2Component,
    RequirementDepartManagerItemEditComponent
  ],
  imports: [
    CommonModule,
    RequirementDepartManagerRoutingModule,
    PaginatorModule,
    TableModule,// 列表
    TabsModule.forRoot(),// tab页面
    BsDropdownModule.forRoot(),// 按钮下拉菜单
    AutoCompleteModule,// 自动补全下拉框
    BsDatepickerModule.forRoot(),// 日期下拉框
    UtilsModule,
    ModalModule.forRoot(),
  ],
  providers:[
    { provide: BsLocaleService, useFactory: NgxBootstrapDatePickerConfigService.getDatepickerLocale }// 通用控件本地化，例：日期控件 显示中文
  ]
})
export class RequirementDepartManagerModule { }
